;;; init-ts --- javascript language config
;;; Commentary:
;;; Code:

;; typescript 设置
(use-package typescript-mode
  :defer t
  :mode ("\\.ts\\''" . typescript-mode))

(use-package tide
  :defer t
  :hook ((typescript-mode . tide-setup)
         (typescript-mode . tide-hl-identifier-mode)
         (before-save . tide-format-before-save)))

(leader-key typescript-mode-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run")
  )

(provide 'init-ts)
;;; init-ts.el ends here
